<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
  <link rel="stylesheet" href="index.css">
</head>

<body>
  <!-- <div id="container" data-PageSwitch> -->
  <div id="container">
    <div class="sections">
      <div class="section" id="section1">
        <h3>第一页</h3>
      </div>
      <div class="section" id="section2">
        <h3>第二页</h3>
      </div>
      <div class="section" id="section3">
        <h3>第三页</h3>
      </div>
      <div class="section" id="section4">
        <h3>第四页</h3>
      </div>
    </div>
  </div>
  <script src="jquery.min.js"></script>
  <script src="index.js"></script>
  <script>
    $('#container').PageSwitch({
      loop:true
    });
  </script>
</body>

</html>